package com.gaojinqi.service.impl;

import com.gaojinqi.dataobject.SellerInfo;
import com.gaojinqi.repository.SellerInfoRepository;
import com.gaojinqi.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 卖家端
 *
 * @author gaojinqi
 * @date 2019/5/12 14:18
 */
@Service
public class SellerServiceImpl implements SellerService {

    @Autowired
    private SellerInfoRepository repository;

    @Override
    public SellerInfo findSellerInfoByOpenid(String openid) {
        return repository.findByOpenid(openid);
    }
}
